﻿#include "widget.h"

#include <QApplication>
#include <QTranslator>
#include <QDebug>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv); 
    QTranslator ts;
    QString appPath = a.applicationDirPath();
    qDebug() << "path:" << appPath + "/myQtableviewDemo.qm";
    if (!ts.load(appPath + "/myQtableviewDemo.qm"))
        qDebug() << "load qm failed.";
    a.installTranslator(&ts);

    Widget w;
    w.show();
    return a.exec();
}
